package cn.jeefast.common.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author theodo
 * @since 2019-12-30
 */
@TableName("mb_research_setp_data_detail")
public class MbResearchSetpDataDetail extends Model<MbResearchSetpDataDetail> {

    private static final long serialVersionUID = 1L;

	@TableId(value="dd_id", type= IdType.AUTO)
	private Long ddId;
    /**
     * 1:ALB 2:CPR 3:TCHO 4:TG 5:LDL-C 6:HDL-C 7:SCR 8:BUN 9:P
     */
	@TableField("dd_type")
	private Integer ddType;
    /**
     * 值
     */
	@TableField("dd_value")
	private String ddValue;
    /**
     * 参考值
     */
	@TableField("dd_reference_value")
	private String ddReferenceValue;
    /**
     * 关联ID
     */
	@TableField("data_detail_id")
	private Long dataDetailId;
	@TableField(exist = false)
	private String name;


	public Long getDdId() {
		return ddId;
	}

	public void setDdId(Long ddId) {
		this.ddId = ddId;
	}

	public Integer getDdType() {
		return ddType;
	}

	public void setDdType(Integer ddType) {
		this.ddType = ddType;
	}

	public String getDdValue() {
		return ddValue;
	}

	public void setDdValue(String ddValue) {
		this.ddValue = ddValue;
	}

	public String getDdReferenceValue() {
		return ddReferenceValue;
	}

	public void setDdReferenceValue(String ddReferenceValue) {
		this.ddReferenceValue = ddReferenceValue;
	}

	public Long getDataDetailId() {
		return dataDetailId;
	}

	public void setDataDetailId(Long dataDetailId) {
		this.dataDetailId = dataDetailId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	protected Serializable pkVal() {
		return this.ddId;
	}

	@Override
	public String toString() {
		return "MbResearchSetpDataDetail{" +
			", ddId=" + ddId +
			", ddType=" + ddType +
			", ddValue=" + ddValue +
			", ddReferenceValue=" + ddReferenceValue +
			", dataDetailId=" + dataDetailId +
			"}";
	}
}
